import Router from 'koa-router'
import publicController from '@/api/PublicController'
import userController from '@/api/UserController'
import contentController from '@/api/ContentController'
import commentsController from '@/api/CommentsController'
const router = new Router()
router.prefix('/public')
router.get('/getCaptcha', publicController.getCaptcha)

router.get('/reset-email', userController.updateUserName)
// 获取文章列表
router.get('/lists', contentController.getPostList)
// 温馨提醒
router.get('/tips', contentController.getTips)
// 置顶文章
router.get('/top', contentController.getTop)
// 友情链接
router.get('/links', contentController.getLinks)
// 获取文章详情
router.get('/content/detail', contentController.getPostDetail)

// 获取评论列表
router.get('/comments', commentsController.getComments)
export default router
